Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add newer rubies (primarily 2.4) to travis #7

Merged
merged 3 commits into from
May 8, 2017

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented May 3, 2017

  • upgrade webmock to 2.3.1+ for ruby 2.4 support
  • upgrade vcr for webmock 2 support
  • converted cassettes for webmock 2 support (see the final commit for details)
  • fixed code climate test reporter failure

https://github.com/codeclimate/ruby-test-reporter/blob/master/CHANGELOG.md#v100-2016-11-03

jrafanie added 3 commits May 3, 2017 17:40
[1] Older webmock is not compatible with ruby 2.4
[2] webmock 2+ needs VCR 3.0.2+ [2]
[3] Script from [2] to convert userinfo in uri to auth header (in
cassettes)
[4] An alternative script
[5] thanks to cben for digging into this

[1] Ruby 2.4.0 removed the closed? check in the conditional in: s.close if
!s.closed?
Webmock was changed to add close to StubSocket along with another
change...
ruby/ruby@f845a9e
bblimke/webmock@8f2176a

WebMock 2.3.1+ fixed the issue with ruby 2.4.0 by adding
StubSocket#close.

[2] vcr/vcr#570 (comment)

[3] https://gist.github.com/glaszig/9170b1cf2186674faeead74a68606c5d

[4] https://gist.github.com/ujh/594c99385b6cbe92e32b1bbfa8578a45

[5] ManageIQ/kubeclient#247
@jrafanie
Copy link
Member Author

jrafanie commented May 4, 2017

@bdunne the webmock issue should be fixed by the last commit

@jrafanie jrafanie changed the title Add newer rubies to travis Add newer rubies (primarily 2.4) to travis May 4, 2017
@jrafanie
Copy link
Member Author

jrafanie commented May 4, 2017

I'll close #8 and just have the change be included in this PR. I can re-open if needed

jrafanie added a commit to jrafanie/manageiq that referenced this pull request May 4, 2017
[1] Older webmock is not compatible with ruby 2.4
[2] webmock 2+ needs VCR 3.0.2+ [2]
[3] Script from [2] to convert userinfo in uri to auth header (in
cassettes)
[4] An alternative script
[5] thanks to cben for digging into this
[6] very similar to the change for foreman_api_client

[1] Ruby 2.4.0 removed the closed? check in the conditional in: s.close if
!s.closed?
Webmock was changed to add close to StubSocket along with another
change...
ruby/ruby@f845a9e
bblimke/webmock@8f2176a

WebMock 2.3.1+ fixed the issue with ruby 2.4.0 by adding
StubSocket#close.

[2] vcr/vcr#570 (comment)

[3] https://gist.github.com/glaszig/9170b1cf2186674faeead74a68606c5d

[4] https://gist.github.com/ujh/594c99385b6cbe92e32b1bbfa8578a45

[5] ManageIQ/kubeclient#247

[6] ManageIQ/foreman_api_client#7
Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bdunne bdunne merged commit 1cdf102 into ManageIQ:master May 8, 2017
@jrafanie jrafanie deleted the add_newer_rubies branch May 8, 2017 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants